@f{legend}

Creates a legend for 1D and 2D datasets.

@f{legend}
@f{Legend(DiagramName1, DiagramName2, ...)}
@f{legend(DiagramName, DatasetIndex)}

Comment

The legend text for each dataset is set in the Configuration dialog field Data=>1D and 2D Dataset Properties of the corresponding dataset. The legend will be updates if the legend text or the dataset style is modified.

If the legend text starts with an exclamation mark “!” the dataset will not be displayed in the legend.

Example

@f{legend()}

Output:

../../_images/Feldfunktion_Legend.png

If you double-click the text object the following dialog box will be displayed:

../../_images/Textdialog_Feldfunktion_Legende.png

A field function is always starting with characters “@f{” followed by the field function name followed by a parameter list in round brackets followed by a closing curly bracket “}”. The field result is enclosed curly brackets “{…}”.

History

Version Description
5.10.0 If the legend text starts with an exclamation mark “!” the dataset will not be displayed in the legend.

id-1817341